home *** CD-ROM | disk | FTP | other *** search
/ World of Video / World of Video.iso / gfxprograms / conversion / pbmplus / doc / ppmquant.doc < prev    next >
Text File  |  1995-02-13  |  1KB  |  67 lines

  1.  
  2.  
  3.  
  4. ppmquant(1)                 PBM Plus                  ppmquant(1)
  5.  
  6.  
  7.  
  8. NAME
  9.      ppmquant - quantize the colors in a portable pixmap down to
  10.      a specified number
  11.  
  12. SYNOPSIS
  13.      ppmquant [-floyd|-fs] <ncolors> [ppmfile]
  14.  
  15. DESCRIPTION
  16.      Reads a portable pixmap as input.  Chooses <ncolors> colors
  17.      to best represent the image, maps the existing colors to the
  18.      new ones, and writes a portable pixmap as output.
  19.  
  20.      The quantization method is Heckbert's "median cut".
  21.  
  22.      The -floyd flag adds a Floyd-Steinberg error diffusion step.
  23.      This may give better results on images where the unmodified
  24.      quantization has banding or other artifacts.  It takes maybe
  25.      20% more CPU time.
  26.  
  27.      All flags can be abbreviated to their shortest unique pre-
  28.      fix.
  29.  
  30. REFERENCES
  31.      "Color Image Quantization for Frame Buffer Display" by Paul
  32.      Heckbert, SIGGRAPH '82 Proceedings, page 297.
  33.  
  34. SEE ALSO
  35.      ppmcscale(1), ppm(5)
  36.  
  37. AUTHOR
  38.      Copyright (C) 1989 by Jef Poskanzer.
  39.  
  40.      Permission to use, copy, modify, and distribute this
  41.      software and its documentation for any purpose and without
  42.      fee is hereby granted, provided that the above copyright
  43.      notice appear in all copies and that both that copyright
  44.      notice and this permission notice appear in supporting docu-
  45.      mentation.  This software is provided "as is" without
  46.      express or implied warranty.
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Printed 5/25/90            18 May 1989                          1
  64.  
  65.  
  66.  
  67.